/**
 * This file is part of codzo-freelance-timetracking.
 * 
 * codzo-freelance-timetracking is free software: you can
 * redistribute it and/or modify it under the terms of the GNU
 * General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your
 * option) any later version.
 * 
 * codzo-freelance-timetracking is distributed in the
 * hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 * Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with codzo-freelance-timetracking. If not, see
 * <http://www.gnu.org/licenses/>.
 */


/**
 * Main Application class
 *
 * This class will register the application and 
 * provide a static method for Logging
 */


#ifndef INCLUDE_MAIN_TIMETRACKER_H
#define INCLUDE_MAIN_TIMETRACKER_H

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

#include "main/taskbaricon.h"


class TimeTracker : public wxApp
{
    public:
        virtual bool OnInit();
        virtual int  OnExit();
        void ExitApplication();
		void ShowMainWindow(bool show=true);
    private:
		~TimeTracker() ;
		wxWindow * m_mainWindow ;
		wxTaskBarIcon * m_taskbaricon ;
};

DECLARE_APP(TimeTracker)

#endif // INCLUDE_MAIN_TIMETRACKER_H

